package com.one.rope.mvp.basecore.exception;

import com.one.rope.mvp.basecore.bean.ResponseMessage;

/**
 * @author Weijian.liu
 * @desc 基础业务类异常
 * @date 2018/11/26
 */
public class BusinessDataException extends BaseException {

  private static final long serialVersionUID = 132598409547409L;

  public BusinessDataException(int code, String msg) {
    super(code, msg);
  }

  public BusinessDataException(ResponseMessage message) {
    this(message.getCode(), message.getMsg());
  }

  public BusinessDataException(String msg) {
    super(USERFAILURE_CODE, msg);
  }
}
